/*    */ package com.newcrm.webapi;
/*    */ 
/*    */ import com.newcrm.util.ParameterUtil;
/*    */ import com.newcrm.util.Util;
/*    */ import com.newcrm.webapi.sub.AddTag;
/*    */ import com.newcrm.webapi.sub.DeleteTag;
/*    */ import com.newcrm.webapi.sub.ListTags;
/*    */ import com.newcrm.webapi.sub.UpdateTag;
/*    */ import java.io.IOException;
/*    */ import javax.servlet.RequestDispatcher;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ 
/*    */ public class Tag extends AbstractHttpServlet
/*    */ {
/*    */   private static final long serialVersionUID = 3524726309505064326L;
/*    */ 
/*    */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/*    */     throws ServletException, IOException
/*    */   {
/* 35 */     if (!checkLogin(request)) {
/* 36 */       super.showLoginPage(request, response);
/* 37 */       return;
/*    */     }
/* 39 */     String url = request.getRequestURI();
/* 40 */     String[] param = ParameterUtil.getParameters(url, getTagkey());
/* 41 */     if ((param == null) || (param.length == 0)) {
/* 42 */       String operation = Util.getURLParameter(request
/* 43 */         .getParameter("operation"));
/* 44 */       if ((operation == null) || (operation.trim().length() == 0)) {
/* 45 */         request.getRequestDispatcher("/tagManager.jsp").forward(
/* 46 */           request, response);
/* 47 */         return;
/*    */       }
/*    */     }
/* 50 */     super.doGet(request, response);
/*    */   }
/*    */ 
/*    */   protected AbstractAction getAddAction()
/*    */   {
/* 55 */     return new AddTag(this);
/*    */   }
/*    */ 
/*    */   protected String getTagkey()
/*    */   {
/* 60 */     return "/tag";
/*    */   }
/*    */ 
/*    */   protected AbstractAction getUpdateAction(String id)
/*    */   {
/* 65 */     return new UpdateTag(this, id);
/*    */   }
/*    */ 
/*    */   protected AbstractAction getDeleteAction(String id)
/*    */   {
/* 70 */     return new DeleteTag(this, id);
/*    */   }
/*    */ 
/*    */   protected AbstractAction getShowAddPageAction()
/*    */   {
/* 75 */     return null;
/*    */   }
/*    */ 
/*    */   protected AbstractAction getShowAction(String id)
/*    */   {
/* 80 */     return null;
/*    */   }
/*    */ 
/*    */   protected AbstractAction getShowUpdatePageAction(String id)
/*    */   {
/* 85 */     return null;
/*    */   }
/*    */ 
/*    */   protected AbstractAction getListAction()
/*    */   {
/* 90 */     return new ListTags(this);
/*    */   }
/*    */ 
/*    */   protected AbstractAction getShowConfirmDestroyAction(String id)
/*    */   {
/* 95 */     return null;
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.Tag
 * JD-Core Version:    0.6.1
 */